<!--滚动图右侧公告及其小菜单
	2017年2月14日12:28:00
-->
<script type="text/javascript">
$.ajax({
	type:"post",
	url:"{:__URL('SHOP_MAIN/components/getlogininfo')}",
	success:function(data){
		var login_info_html='';
		if(data != null && data !=""){
			if(data["user_info"]["nick_name"]!=null && data["user_info"]["nick_name"] != ""){
 				login_info_html+='<div class="login_img"><img src="{:__IMG($default_headimg)}" class="lazy_load" data-original="'+__IMG(data["user_info"]["user_headimg"])+'"  alt="{:lang('default_avatar')}" />dfadfsdafdsfasd</div>';
				login_info_html+='<div class="login_message"><p class="message_title">Hi,{:lang('i_am')}<a href="{:__URL('SHOP_MAIN/member/index')}" class="member_name" title="'+data["user_info"]["nick_name"]+'">'+data["user_info"]["nick_name"]+'</a></p><p class="message_operation"><a href="javascript:logout();">{:lang('safe_exit')}</a></p></div>';
			}
		}else{
			login_info_html += '<div class="login_img">';
			login_info_html += '<img src="{:__IMG($default_headimg)}" alt="{:lang('default_avatar')}" />';
			login_info_html += '</div>';
			login_info_html += '<div class="login-message">';
			login_info_html += '<p class="message-title">Hi,{:lang('welcome_login')}{$title}</p>';
			login_info_html += '<p class="message-operation" style="padding:5px 0;">';
			login_info_html += '<a href="javascript:;" class="login ajax-login">{:lang('login')}</a>';
			login_info_html += '<a href="'+__URL('SHOP_MAIN/login/registerbox')+'" class="register">{:lang('register')}</a>';
			login_info_html += '</p></div>';
		}
		$('.right-login-message').html(login_info_html);
	}
});
</script>
<div class="right-sidebar NS-TEMPLATE-NAV-CONTAINER">

	<!-- 个人信息 -->
	<div class="right-login-message">
		
		<div style="text-align:center;float:none;">
			<img src="__TEMP__/{$style}/public/images/load_login.gif"/>
			<p style="margin-top:10px;">{:lang('in_load')}</p>
		</div>

	</div>
	
	<!-- 公告 -->
	{if condition="!empty($notice) || !empty($article_list)"}
	<div class="noticeAndArticle">
		<ul>
			{if condition="!empty($notice) && !empty($article_list) "}
			<li style="width: 96px;border-right: 1px solid rgba(204,204,204,0.8);" class="acrive" type="notice">公告</li>
			<li style="width: 96px" type="article">最新资讯</li>
			{else/}
				{notempty name="$notice"}
					<li style="width: 200px;" class="acrive" type="notice">公告</li>
				{/notempty}
				{notempty name="article_list"}
					<li style="width: 200px" class="acrive" type="article">最新资讯</li>
				{/notempty}
			{/if}
		</ul>
	</div>
	{/if}
	{notempty name="$notice"}
		<div class="noticeAndArticleContent proclamation1" data-type="notice"> 
			<ul class="mall-news">
			{foreach name="notice" item ="v"}
				<li><a href="{:__URL('SHOP_MAIN/notice/detail', 'id='.$v.id)}" title="{$v["notice_title"]}">{$v["notice_title"]}</a></li>
			{/foreach}
			</ul>
		</div>		
	{/notempty}
	{notempty name="article_list" }
		<div class="noticeAndArticleContent proclamation1" data-type="article"  {if condition="!empty($notice)"}style="display: none;"{/if}> 
			<ul class="mall-news">
			{foreach name="article_list" item ="v"}
				<li><a href="{:__URL('SHOP_MAIN/cms/articleclassinfo', 'article_id='.$v.article_id)}">{$v["title"]}</a></li>
			{/foreach}
			</ul>
		</div>
	{/notempty}
			
	<p class="right_title"><span>&nbsp;</span>管理</p>
	<div class="shortcut-menu">
		<a href="{:__URL('SHOP_MAIN/shop/applyindex')}" 
			title="申请商家入驻；已提交申请，可查看当前审核状态。" class="store-join-btn" target="_blank">商家加盟</a>
		<a href="{:__URL('ADMIN_MAIN/login')}" target="_blank" class="store-join-help">
			登录商家管理中心</a>
	</div>
	<!-- banner右侧快捷菜单 _end -->
</div>
<script>
	$(".noticeAndArticle ul li").mouseover(function(){
		$(".noticeAndArticle ul li").removeClass("acrive");
		$(this).addClass("acrive");
		var type = $(this).attr('type');
		if(type == "notice"){
			$('[data-type="notice"]').show();
			$('[data-type="article"]').hide();
		}else if(type == "article"){
			$('[data-type="article"]').show();
			$('[data-type="notice"]').hide();

		}
	})
</script>